//
//  InvestOtherCell.m
//  TenThousand
//
//  Created by 我的 on 16/6/6.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "InvestOtherCell.h"

@implementation InvestOtherCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}


- (void)drawRect:(CGRect)rect{
     _progressView.layer.cornerRadius = 3;
    _progressView.layer.masksToBounds = YES;
    
}

//cell赋值
- (void)setDataWithModel:(BorrowListModel *)model{
//    NSString *str = @"%";
    _titleLabel.text = [NSString stringWithFormat:@"%@%@",model.ProjectName,model.Code];//借款编号
    _termLabel.text = model.Term;//期限
    _rateLabel.text = [NSString stringWithFormat:@"%.2f",model.Rate];//年利率
    _minAmountLabel.text = [NSString stringWithFormat:@"%.2f元起投",model.MinAmount];//最低起投
    _tenderLabel.text = [NSString stringWithFormat:@"已加入%@人",model.Tender];//投标人数
    [_progressView setProgress:[model.proportion floatValue]/100 animated:NO];
    _fasate.text = [NSString stringWithFormat:@"%@",model.FaSate];
}

@end
